package com.mzz.creational.factory.simple.commonfactory;

/**
 * 测试普通工厂模式
 * @author xushijian
 * @date 18/5/16
 */
public class Test {

    public static void main(String[] args) {

        System.out.println("这是普通工厂模式....");

        SendFactory senderFactory = new SendFactory();

        //创建邮件发送对象
        Sender sender = senderFactory.produce("mail");

        sender.send();

    }
}
